package com.zc.zby.basicframedemo.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;

import com.weblib.webview.AccountWebFragment;
import com.weblib.webview.BaseWebviewFragment;
import com.zc.zby.basicframedemo.R;
import com.zc.zby.basicframedemo.base.BaseActivity;

public class X5WebViewActivity extends BaseActivity {

    private String url = "https://www.androidweekly.cn/";
    BaseWebviewFragment webViewFragment;

    @Override
    public int getLayoutId() {
        return R.layout.activity_x5_web_view;
    }

    @Override
    public void initViews(Bundle savedInstanceState) {
        getToolbar().setVisibility(View.GONE);
        webViewFragment = AccountWebFragment.newInstance(url);
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = supportFragmentManager.beginTransaction();
        fragmentTransaction.replace(R.id.frame_view, webViewFragment).commit();
    }

    @Override
    public void setListeners() {

    }

    @Override
    public void initToolBar() {

    }

    @Override
    public void initData() {

    }
}
